package com.offcn.entity;

public class CourseUser {
    private int id;
    private int cid;
    private int uid;

    private String courseName; // 表示课程名称
    private String name; // 表示用户名

    // 定义出课程对象: 通过课程id,找到课程信息
    private Course course;
    // 定义出用户对象: 通过用户id,找到用户信息
    private User user;

    public CourseUser() {
    }

    public CourseUser(int cid, int uid) {
        this.cid = cid;
        this.uid = uid;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }
}
